import request from '@/utils/request'

export default {

  /**
   * 根据课程id查询评论并分页
   * @param {课程id} courseId 
   * @param {当前页} page 
   * @param {每页大小} limit 
   * @returns 分页后的map
   */
  getCommentsPage(courseId,page,limit) {
    return request({
      url: `/eduservice/comment/getPageCommentByCourseId/${courseId}/${page}/${limit}`,
      method: 'get'
    })
  },


  addComment(com) {
    return request({
      url: `/eduservice/comment/addComment`,
      method: 'post',
      data: com
    })
  },


  initCommentInfo() {
    return request({
      url: `/eduservice/comment/initCommentInfo`,
      method: 'get',
    })
  },

  

}